#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
int	glob = 10;  
int main(void)
{
 	int  local;
	pid_t pid;
	local = 8;
	if ((pid = fork()) == 0)
  {
		sleep(2);
	} 
else if (pid>0) 
{
		 glob++;
		 local--;
		 sleep(10);
}
printf("glob = %d, local = %d mypid=%d\n", glob, local,getpid()); 
exit (0);
}
